home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inventor Labs: Transportation
/
InventorLabs - Transportation.iso
/
pc
/
builders
/
media
/
netacess
/
url41.dir
/
00001_Script_1
next >
Wrap
Text File
|
1996-08-15
|
3KB
|
123 lines
on TestWindowsWeb
global TheWeb, SetupName, TheURL, TheUser,ThePassword
set SetupName = "Setup.exe"
set TheURL = "http://www.hminet.com"
set TheUser = "Your User Name Here"
set ThePassword = "Your Password Here"
InitWeb
OpenURL
CloseWeb
end
on ShowTest
global TheWeb, SetupName, TheURL, TheUser,ThePassword
set SetupName = "Setup.exe"
set TheURL = "http://www.hminet.com"
set TheUser = "Your User Name Here"
set ThePassword = "Your Password Here"
openXlib "inetobj"
showXlib
inetobj(mDescribe)
InitWeb
-- put "put TheWeb(mCheckInstall)"
-- put "put TheWeb(mInstallAccess,SetupName)"
-- put "put TheWeb(mOpenURL,TheURL,TheUser,ThePassword)"
end
on InitWeb
global TheWeb,WebStatus
openXlib "inetobj"
if the machineType = 256 then
if objectP(TheWeb) then
else
set TheWeb = Inetobj(mNew)
set WebStatus = TheWeb(mInit)
-- put WebStatus
set the text of cast "ErrorReport" to TheWeb(mGetWebError,WebStatus)
end if
end if
end
On InstallWeb
global TheWeb,WebStatus
if objectP(TheWeb) then
if TheWeb(mCheckInstall) = -1 then
set WebStatus = TheWeb(mInstallAccess,"Setup.exe")
set the text of cast "ErrorReport" to TheWeb(mGetWebError,WebStatus)
end if
--
-- Delay: wait for installation to complete
--
repeat while TheWeb(mCheckInstall) = 1
end repeat
end if
end
On OpenURL
global TheWeb,WebStatus,TheUser,ThePassword
if objectP(TheWeb) then
--
-- Check for current installation
--
if TheWeb(mCheckInstall) = -1 then
set the text of cast "ErrorReport" to TheWeb(mGetWebError,2)
InstallWeb
end if
--
-- Open a connection if appropriate
--
if TheWeb(mCheckInstall) = 0 then
set WebStatus = TheWeb(mOpenURL,"http://www.hminet.com",TheUser,ThePassword)
if WebStatus <> 0 then
-- put TheWeb(mGetWebError,WebStatus)
TheWeb(mPostWebError,WebStatus)
end if
end if
else
set the text of cast "ErrorReport" to "Bad Web object"
end if
end
On CloseWeb
global TheWeb
if the machineType = 256 then
if objectP(TheWeb) then
TheWeb(mDispose)
end if
end if
closeXlib "inetobj"
end
On TestErrors
global TheWeb
if objectP(TheWeb) then
repeat with errval = 1 to 7
set anerror = TheWeb(mGetWebError,errval)
-- put errval,".",anerror
set the text of cast "ErrorReport" to anerror
TheWeb(mPostWebError,errval)
end repeat
end if
end